package hbnu.config;
@Configuration
public class OrderService {

    @Resource(name = "orderDao")//将数据层对象orderDao注入到业务层对象orderService
    private orderDao orderDao;

    @Value("JD959595")
        public String orderNo;

    @Value("小米85，华为1005，ipad 95")
        public String[] orderPro;

        public void addOrder () {
            System.out.println("业务层添加订单的方法");
            orderDao.addOrder();
    }
}